package rateexchange.client.ui;

import rateexchange.shared.RateProxy;
import com.google.gwt.core.client.GWT;
import com.google.gwt.editor.client.Editor;
import com.google.gwt.editor.ui.client.ValueBoxEditorDecorator;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class RateEditor extends Composite implements Editor<RateProxy>{
	//
	interface Binder extends UiBinder<Widget,RateEditor>{}
	
	@UiField
	ValueBoxEditorDecorator<String> pickup;
	@UiField
	ValueBoxEditorDecorator<String> loading;
	@UiField
	ValueBoxEditorDecorator<String> turnin;
	@UiField
	ValueBoxEditorDecorator<String> client;
	@UiField
	ValueBoxEditorDecorator<String> service;
	@UiField
	ValueBoxEditorDecorator<String> price;

	public RateEditor() {
		//Sets the editor ui created from xml markup to be wrapped by the composite. 
		initWidget(GWT.<Binder> create(Binder.class).createAndBindUi(this));
	}
}
